﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.WebControls;
using System.Web.UI;

namespace Pesico.Forms.Common
{
    public class Helpers
    {
        public static void HiddenRibbon(Page page, string key)
        {
            SPRibbon ribbon = SPRibbon.GetCurrent(page);
            if (ribbon != null)
            {
                ribbon.TrimById(key);
            }
        }
    }
}
